package bsts.view.bill;

import bsts.application.BSTSApplication;
import bsts.controller.BillController;

public class BillApplication {
		private BillController billController;
	    private ManageBillWindow billWindow;

	    public BillApplication () {
	       billController = new BillController();
	       billWindow = new ManageBillWindow (this);
	       billWindow.pack();	       
	    }

	    public void start() {
	    	billWindow.refresh ();	    	
	    	billWindow.setSize(200,400);
	    	billWindow.setVisible (true);
	    }
	    
	    public void shutDown(){
	    	billWindow.setVisible(false);
	    	billWindow.dispose();
	    	System.out.println("In the bill application shut down method");
	    	System.exit(0);
	    }
	    
	    public static void main(String[] args) {
	    	BillApplication billApplication = new BillApplication();
	    	billApplication.start();
		}
}
